{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}
{/* import Js,Css */}
	<js href="__PUBLIC__/js/admin/listTable.js"/>
	<js href="__PUBLIC__/js/admin/js.util.js"/>
	<css href="__PUBLIC__/css/admin/common.css"/>
	<js href="__PUBLIC__/js/admin/js.selectzone.js"/>
	
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}
<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->

<form method="post" action="" name="listForm">
	<div class="list-div" id="listDiv">
		<table class="table" cellspacing='1' id="list-table" width="100%">
			<tr>
				<th align="center">会员等级名称</th>
				<th align="center">积分下限</th>
				<th align="center">积分上限</th>
				<th align="center">初始折扣率(%)</th>
				<th align="center">特殊会员组</th>
				<th align="center">显示价格</th>
				<th align="center">操作</th>
			</tr>
			<volist name="user_ranks" id="rank">
			<tr>
				<td class="first-cell" >
					<span onclick="listTable.edit(this,'edit_name', {$rank.rank_id})">{$rank.rank_name}</span>
				</td>
				<td align="center">
					<span <if condition="$rank['special_rank'] neq 1">onclick="listTable.edit(this, 'edit_min_points', {$rank.rank_id})"</if> >{$rank.min_points}</span>
				</td>
				<td align="center">
					<span <if condition="$rank['special_rank'] neq 1">onclick="listTable.edit(this, 'edit_max_points', {$rank.rank_id})"</if> >{$rank.max_points}</span></td>
				<td align="center">
					<span onclick="listTable.edit(this, 'edit_discount', {$rank.rank_id})">{$rank.discount}</span>
				</td>
				<td align="center">
					<if condition="$rank['special_rank']">
						<img src="__PUBLIC__/image/admin/yes.gif" onclick="listTable.toggle(this, 'toggle_special', {$rank.rank_id})" />
					<else/>
						<img src="__PUBLIC__/image/admin/no.gif" onclick="listTable.toggle(this, 'toggle_special', {$rank.rank_id})" />
					</if>
				</td>
				<td align="center">
					<if condition="$rank['show_price']">
						<img src="__PUBLIC__/image/admin/yes.gif" onclick="listTable.toggle(this, 'toggle_showprice', {$rank.rank_id})" />
					<else/>
						<img src="__PUBLIC__/image/admin/no.gif" onclick="listTable.toggle(this, 'toggle_showprice', {$rank.rank_id})" />
					</if>
				</td>
				<td align="center">
					<a href="__URL__/remove_user_rank?id={$rank.rank_id}" onclick="listTable.remove({$rank.rank_id}, '确定删除')" title="移除">
						<img src="__PUBLIC__/image/admin/icon_drop.gif" border="0" height="16" width="16">
					</a>
				</td>
			</tr>
			</volist>
			<tr>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
				<td align="center">&nbsp;</td>
			</tr>
		</table>
	</div>
</form>

<script type="Text/Javascript" language="JavaScript">
onload = function(){
    // 开始检查订单
    // startCheckOrder();
}
</script>
